<div id="loginSystem">
<form action="#" method="post" name="frmlogin" id="frmlogin">
<table class="table" align="center" width="300px">
	<tr>
    	<th colspan="2">
        	Please Login!
        </th>
    </tr>
    <tr>
    	<td>
        	User Login
        </td>
        <td>
        	<input type="text" id="user_login" name="user_login" class="engineInput">
        </td>
    </tr>
    <tr>
    	<td>
        	Password
        </td>
        <td>
        	<input type="password" id="user_pass" name="user_pass" class="engineInput">
        </td>
    </tr>
	<tr>
    	<th colspan="2">
        	<input type="submit" id="send" name="send" class="button" value="login">
        </th>
    </tr>
	<tr>
    	<th colspan="2">
    <?php 
	if(isset($login) && (!$login))
	{
	?>
        <div style="display:none" id="warning">
		Login Failed, try again!
        </div>
    <?php
	}
	else if(isset($login) && ($login))
	{
	?>
        <div style="display:none" id="warning">
		Login Success, Page will be redirect.
        <script type="text/javascript">
			window.location = "<?php echo $baseUrlSave;?><?php echo $otority;?>";
		</script>
        </div>
    <?php
	}
	?>
        </th>
    </tr>
</table>
</form>
</div>
<script type="text/javascript">
	$('#frmlogin').loginSystem({
			'user_login' 	: 'user_login'
			, 'user_pass'	: 'user_pass'
			, 'url'			: '<?php echo $baseUrlSave;?><?php echo $otority;?>/ajax/'
		});
	$('#warning').show('slow');
	$('#user_login').focus();
</script>
